# -*- coding: UTF-8 -*-
#:kivy 1.6.0
#:import FittableLabel ui.fittable_widgets.FittableLabel
#:import FittableButton ui.fittable_widgets.FittableButton
#:import DisableableButton ui.disableable_button.DisableableButton
#:import ConfirmationButton ui.confirmation_button.ConfirmationButton
#:import LongPressLabel ui.long_press_label.LongPressLabel
#:import TextInput ui.fittable_widgets.FittableTextInput

<FromToWidget>:
    delete_button: del_button
    skip_button: sk_button
    next_button: next_btn
    orientation: 'vertical'
    BoxLayout:
        height: root.size[1]*0.2
        size_hint_y: None
        DisableableButton:
            text: _('Current results')
            on_release: root.finish(True)
        FittableLabel:
            text: _('Words left: {}').format(root.words_remaining)
    BoxLayout:
        orientation: 'horizontal'
        size_hint_y: 0.1
        ConfirmationButton:
            id: sk_button
            text_normal: _('Skip turn')
            on_confirm: root.skip()
        ConfirmationButton:
            id: del_button
            text_normal: root.delete_butt_text
            on_confirm: root.delete()
    BoxLayout:
        size_hint_y: 0.1
        FittableLabel:
            text: _('Round: {}').format(root.circle_num)
        FittableLabel:
            text: root.time_remaining

    BoxLayout:
        orientation: 'horizontal'
        size_hint_y: 0.25

        Label:
            text: root.player_explain

        FittableLabel:
            length: 2
            text: u'=>'

        Label:
            text: root.player_guess

    FittableButton:
        id: next_btn
        size_hint_y: 0.1
        color_name: 'green'
        text: root.button_text
        on_release: root.finish(False)
